// store/modules/nodepreview.js
const nodepreview = {
  state: {
    status: ''
  },
  mutations: {
    updateNodeStatus(state, newStatus) {
      state.status = newStatus;
    }
  },
  actions: {
    setNodeStatus({ commit }, newStatus) {
      commit('updateNodeStatus', newStatus);
    }
  },
  getters: {
    getNodeStatus: state => state.status
  }
};
export default nodepreview;